The Accordion Pane Component > FAccordionPane.removeListener()

 

FAccordionPane.removeListener()

Availability

Flash Player 6.

Usage

myAccordion_acp.removeListener (listener)

Parameters

listener The listener Object which should be removed from the list of Objects listening for events from the component.

Returns


A Boolean value indicating whether the listener was sucessfuly removed.

Description

This method removes the specified object from the list of Objects listening for events from the component.

Example

The accordion_addListener.fla example file contains an example of using this method.

The following code creates a listener, and then adds and removes it from the component.

var sections = ["Section 1","Section 2","Section 3","Section 4"];
	myAccordionPane_acp.setDataProvider(sections);

	var listener = {};
	listener.onSelect = function(obj,item){
	trace("Item Selected: "+item.label);
	}
	myAccordionPane_acp.addListener(listener);
	myAccordionPane_acp.removeListener(listener);